package mirrormonkey.util.netevent;

/**
 * Encapsulates the action that should be taken in the update loop when a
 * specific network event (message received, client connected, ...) has occured
 * between some earlier frame and the current one.
 * 
 * @author Philipp Christian Loewner
 * 
 */
public interface NetworkEvent {

	/**
	 * Will contain the code that would have been executed after the receipt of
	 * the event. This method will be called from within the main update loop by
	 * MirrorMonkey to process network events in a synchronized manner.
	 */
	public void process();

}
